package svcmodel

import (
	"github.com/zeromicro/go-zero/core/stores/cache"
	"github.com/zeromicro/go-zero/core/stores/sqlx"
)

var _ GatewayServiceTcpRuleModel = (*customGatewayServiceTcpRuleModel)(nil)

type (
	// GatewayServiceTcpRuleModel is an interface to be customized, add more methods here,
	// and implement the added methods in customGatewayServiceTcpRuleModel.
	GatewayServiceTcpRuleModel interface {
		gatewayServiceTcpRuleModel
	}

	customGatewayServiceTcpRuleModel struct {
		*defaultGatewayServiceTcpRuleModel
	}
)

// NewGatewayServiceTcpRuleModel returns a model for the database table.
func NewGatewayServiceTcpRuleModel(conn sqlx.SqlConn, c cache.CacheConf) GatewayServiceTcpRuleModel {
	return &customGatewayServiceTcpRuleModel{
		defaultGatewayServiceTcpRuleModel: newGatewayServiceTcpRuleModel(conn, c),
	}
}
